<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script>
    //JavaScript解释器会跟据语句的上下文自动加上分号
    var a = 10
    var b = 11

    console.log(a);
    console.log(b);

    //不写分号，一般要求一个语句一行

    //一般｛｝花括号后不用加分号
    if (a>10){

    }

    //但也有例外的情况
    //a.js
    var i = 19;
    var x = 10;
    var y = x;





    //b.js
    (function aa(){return 100}())




    console.log(y);
</script>
</body>
</html>